

#import <Foundation/Foundation.h>
//#import <CommonCrypto/CommonCryptor.h>
@interface JHEncrypt : NSObject

/// 加密方法
+ (NSString *) encryptUseDES:(NSString *)plainText;

/// 解密方法
+ (NSString *) decryptUseDES:(NSString *)plainText ;



//将字典转换成字符串
+ (NSString*)dictionaryToJson:(NSDictionary *)dic;

//将json字符串转换成字典
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;


//解密方法2，把单行数据进行解密
+ (NSString*)getMstr:(NSString *)plainText;

//获取加密后的文件名
+ (NSString*)getFileName:(NSString *)filename;
@end
